package text;

import java.util.ArrayList;

public class text4 {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student s1 = new Student("zhangsan",24);
        Student s2 = new Student("lisi",23);
        Student s3 = new Student("wangwu",22);
        list.add(s1);
        list.add(s2);
        list.add(s3);
        System.out.println(list);

    }
}
